package com.menhai.personmanagement.mapper;

import com.menhai.personmanagement.entity.User;
import com.menhai.personmanagement.entity.co.UserCo;
import com.menhai.personmanagement.entity.vo.SysOperateVo;
import com.menhai.personmanagement.entity.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import com.menhai.personmanagement.entity.SysOperate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户操作 Mapper 接口
 * </p>
 *
 * @author shikun
 * @since 2022-01-24
 */
@Mapper
public interface SysOperateMapper extends BaseMapper<SysOperate>{


    /**
     * @describe 登录人每日操作次数
     * @param sysOperate
     * @Return java.util.List<com.menhai.personmanagement.entity.vo.SysOperateVo>
     * @Date 2022/1/25 13:39
     * @author shikun
     */
    List<SysOperateVo> selectByCurrUserAll(@Param("sysOperate") SysOperate sysOperate);

    /**
     * @describe 登陆人操作总数
     * @param currUser
     * @Return int
     * @Date 2022/1/25 14:10
     * @author shikun
     */
    int selectByCurrUser(@Param("currUser") String currUser);

    /**
     * @describe 本月操作次数
     * @param currUser
     * @Return int
     * @Date 2022/1/25 14:08
     * @author shikun
     */
    int selectByCurdateAll(@Param("currUser") String currUser);

    /**
     * @describe 当周操作次数
     * @param currUser
     * @Return java.util.List<com.menhai.personmanagement.entity.vo.SysOperateVo>
     * @Date 2022/1/25 14:00
     * @author shikun
     */
    int selectByYearueekAll(@Param("currUser") String currUser);


    /**
     * @describe 今日操作次数
     * @param currUser
     * @Return int
     * @Date 2022/1/25 14:05
     * @author shikun
     */
    int selectByCurrUserNowAll(@Param("currUser") String currUser);
}
